(function () {
    var id = 'js_pop_ad_2015_11_12';
    var imgUrl = '//img.myscrmimg.cn/static_public/ad/2015_11/mobile.png';

    window.POP_1AD1_Mobile({
        key: 'thanks_giving_day',
        html: '<div id="' + id + '" style="transition-duration:1s;margin-top:50px;opacity:0;width: 100%;height: 100%;background:no-repeat center url(' + imgUrl + ');background-size: 80%;">',
        expires: 30,
        startTime: new Date(2015, 10, 26, 0, 0, 0, 0).getTime(),
        endTime: new Date(2015, 10, 27, 0, 0, 0, 0).getTime(),
        timeout: 10000,
        preLoadImages: [imgUrl],
        show: function () {
            setTimeout(function () {
                var element = document.getElementById(id);
                var style = element.style;
                style.opacity = 1;
                style.marginTop = '0px';
            }, 50);
        }
    });
})();
